<template>
  <div class="vue-component">
    <h1 class="">Vue组件示例</h1>
    
    <!-- 开发者说：在这些class属性中输入"btn-"前缀时，应该会看到自动补全建议 -->
    <div class=" sx-">
      <button class="btn-primary" @click="handleClick">主要按钮</button>
      <button class="btn-secondary" @click="handleClick">次要按钮</button>
      <button class="btn-success " @click="handleClick">成功按钮</button>
    </div>

    <!-- 开发者说：在这些class属性中输入"text-"前缀时，应该会看到自动补全建议 -->
    <div class="sx-">
      <p class="text-primary">主要文本</p>
      <p class="text-secondary">次要文本</p>
      <p class="text-success">成功文本</p>
    </div>

    <!-- 开发者说：在这些class属性中输入"bg-"前缀时，应该会看到自动补全建议 -->
    <div class="background-section">
      <div class="bg-primary text-white p-3">主要背景</div>
      <div class="bg-secondary text-white p-3">次要背景</div>
      <div class="bg-success text-white p-3">成功背景</div>
    </div>

    <!-- 开发者说：在这些class属性中输入"border-"前缀时，应该会看到自动补全建议 -->
    <div class="border-section">
      <div class="border border-primary p-3">主要边框</div>
      <div class="border border-secondary p-3">次要边框</div>
      <div class="border border-success p-3">成功边框</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'VueComponent',
  methods: {
    handleClick() {
      console.log('按钮被点击');
    }
  }
}
</script>

<style scoped>
.vue-component {
  padding: 20px;
}

.button-group {
  margin-bottom: 20px;
}

.button-group button {
  margin-right: 10px;
}

.text-section {
  margin-bottom: 20px;
}

.text-section p {
  margin-bottom: 10px;
}

.background-section {
  margin-bottom: 20px;
}

.background-section div {
  margin-bottom: 10px;
}

.border-section {
  margin-bottom: 20px;
}

.border-section div {
  margin-bottom: 10px;
}
</style>
